﻿<view:BaseView x:Class="ModernUILogViewer.Pages.RegexSettings"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             xmlns:vm="clr-namespace:ModernUILogViewer.ViewModel"             
             xmlns:view="clr-namespace:ModernUILogViewer.View"
             xmlns:content="clr-namespace:ModernUILogViewer.Content"
             xmlns:elem="clr-namespace:ModernUILogViewer.Elements"
             DataContext="{Binding Source={StaticResource mainVM}, Path=OptionsVM}"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"             
             >
    
    <DockPanel>
        <Grid DockPanel.Dock="Top">
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <StackPanel Orientation="Horizontal">
                <mui:ModernButton 
                    ToolTip="Import settings"     
                    Command="{Binding ImportSettings}"                    
                    EllipseDiameter="24" IconWidth="16" IconHeight="16"                           
                    VerticalAlignment="Top"                    
                    IconData="F1 M 57,19L 57,57L 19,57L 19,19L 57,19 Z M 22,54L 54,54L 54,22.0001L 22,22L 22,54 Z M 24,24.0001L 36,24.0001L 36,52L 24,52L 24,24.0001 Z M 52,36L 43.3334,36L 47,31.0001L 43,31L 38,38L 43,45L 47,45L 43.3334,40L 52,40L 52,36 Z "              
                    />
                <mui:ModernButton 
                    Margin="{StaticResource DefaultLeftMargin}"
                    ToolTip="Export settings"                    
                    Command="{Binding ExportSettings}" 
                    EllipseDiameter="24" IconWidth="16" IconHeight="16"                           
                    VerticalAlignment="Top"
                    IconData="F1 M 19,19L 57,19L 57,57L 19,57L 19,19 Z M 54,54L 54,22.0001L 22,22.0001L 22,54L 54,54 Z M 52,24.0001L 52,52L 35,52L 35,40L 44.6666,40L 41,45L 45,45L 50,38L 45,31L 41,31L 44.6666,36L 35,36L 35,24L 52,24.0001 Z "                    
                    />
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Column="1">
                <mui:ModernButton 
                    ToolTip="Help online"
                    Command="{x:Static view:ViewCommands.OpenUrl}" 
                    CommandParameter="{StaticResource configdocurl}"
                    EllipseDiameter="24" IconWidth="16" IconHeight="16"                           
                    VerticalAlignment="Top"
                    Margin="{StaticResource DefaultRightMargin}"
                    IconData="F1 M 37.2083,49.0833C 39.3945,49.0833 41.1667,50.8555 41.1667,53.0417C 41.1667,55.2278 39.3945,57 37.2083,57C 35.0222,57 33.25,55.2278 33.25,53.0417C 33.25,50.8555 35.0222,49.0833 37.2083,49.0833 Z M 38,17.4167C 44.9956,17.4167 50.6666,21.9416 50.6666,28.5C 50.6666,30.875 49.0833,34.8333 45.9167,36.4167C 42.75,38 41.1667,40.1267 41.1667,42.75L 41.1667,45.9167L 33.25,45.9167L 33.25,43.5417C 33.25,38.1571 38,34.8333 39.5833,33.25C 42.75,30.0833 42.75,29.644 42.75,28.5C 42.75,25.8767 40.6233,23.75 38,23.75C 35.3766,23.75 33.25,25.8767 33.25,28.5L 33.25,30.875L 25.3333,30.875L 25.3333,29.2917C 25.3333,22.7333 31.0044,17.4167 38,17.4167 Z "              
                />
            </StackPanel>
        </Grid>
        <Grid Style="{StaticResource ContentRoot}">
            <StackPanel>
                <content:ContentRegexSettings />
            </StackPanel>
        </Grid>
        
    </DockPanel>

    
</view:BaseView>
